using AZROLESLib;

namespace AzManContrib.MVC.Initialization
{
    public class AcceptingAzManClientContext : AzManClientContextBase
    {
        public AcceptingAzManClientContext()
            : base(() => string.Empty)
        {
        }

        public override object AccessCheck(string bstrObjectName, object varScopeNames, object varOperations, object varParameterNames, object varParameterValues, object varInterfaceNames, object varInterfaceFlags, object varInterfaces)
        {
            return new object[] {0};
        }

        public override bool AccessCheck(IAzOperation operation)
        {
            return true;
        }
    }
}